package com.bree.erp.report.entity.po;

import java.util.ArrayList;
import java.util.List;

public class PurchaseOrderDataSet {
	
	private List<Item> items; 
	
	public PurchaseOrderDataSet(List<Item> items) {
		this.items = items;
	}

	public PurchaseOrderDataSet() {
		items = new ArrayList<Item>();
		
		for(int k = 0; k < 10; k++) {
			Item item1 = new Item();
			item1.setItemNumber(k+1);
			item1.setDescription("Item Description " + (k+1));
			double qty = k + 10.0;
			item1.setQuantity(qty);
			item1.setUnit("PC");
			double price = 27.5 * (k + 1);
			item1.setPricePerUnit(price);
			item1.setTotalPrice(qty * price);
			
			items.add(item1);
		}
		
		
	}
	
	/**
	 * @return the items
	 */
	public List<Item> getItems() {
		return items;
	}
	/**
	 * @param items the items to set
	 */
	public void setItems(List<Item> items) {
		this.items = items;
	}
}
